#ifndef UNITIA_H
#define UNITIA_H
#include "unit.h"

class UnitIA : public Unit{
public:
    UnitIA(GameMap* map, const UnitProperties& properties, quint8 x = 0, quint8 y = 0, quint8 teamNumber = NO_TEAM);
    void newTurn();
    bool moveTo(quint8 x, quint8 y);
    void attack(Unit* target);
    QList<QPoint> pathTowards(quint8 x, quint8 y);
    QPoint getDestination();

    quint8 getTargetNumber() { return m_numtarget; }
    Unit* getTarget() { return m_target;}
    void setTargetNumber(quint8 num) { m_numtarget = num; }
    void setTarget(Unit* t) { m_target = t; }

private:
    Unit* m_target;
    quint8 m_numtarget;
};


#endif // UNITIA_H
